using Microsoft.AspNetCore.Mvc;

namespace Quicklogin.Server.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class QuickloginController : ControllerBase
    {
        private readonly ILogger<QuickloginController> _logger;

        public QuickloginController(ILogger<QuickloginController> logger)
        {
            _logger = logger;
        }

        [HttpGet(Name = "GetQuicklogin")]
        public Result<string> Get(string token,string accessToken)
        {
            var value = Yidun.Oneclick.GetPhoneNumber(accessToken, token);
            return new Result<string> { Value = value };
        }
    }
}
